const Controller = require('egg').Controller

class LogOutController extends Controller {
    async index() {
        const { ctx } = this
        ctx.session.uid = null
        ctx.redirect('/')
    }
}

module.exports=LogOutController